import fetch from "@/utils/fetch"

export function loginByUsername(data){
    console.log(JSON.stringify(data))
    return fetch({
        url:'user/login',
        method:'post',
        headers: {'content-type': 'application/json;charset=UTF-8'},
        data:JSON.stringify(data)
    })
}